package pojo;

import java.io.PrintWriter;
import java.security.PrivateKey;
import java.time.Period;
import java.util.*;

public class User {

    private int id;

    private String name;

    private  String pwd;

    private int age;

    private Date bron;

    private String[] hobby;

    private Set<String> phones;

    private List<String> names;

    private Map<String,String> countries;

    private Properties files;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBron() {
        return bron;
    }

    public void setBron(Date bron) {
        this.bron = bron;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Set<String> getPhones() {
        return phones;
    }

    public void setPhones(Set<String> phones) {
        this.phones = phones;
    }

    public List<String> getNames() {
        return names;
    }

    public void setNames(List<String> names) {
        this.names = names;
    }

    public Map<String, String> getCountries() {
        return countries;
    }

    public void setCountries(Map<String, String> countries) {
        this.countries = countries;
    }

    public Properties getFiles() {
        return files;
    }

    public void setFiles(Properties files) {
        this.files = files;
    }

    public User(int id, String name, String pwd, int age, Date bron, String[] hobby, Set<String> phones, List<String> names, Map<String, String> countries, Properties files) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.age = age;
        this.bron = bron;
        this.hobby = hobby;
        this.phones = phones;
        this.names = names;
        this.countries = countries;
        this.files = files;
    }

    public User(){

    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", age=" + age +
                ", bron=" + bron +
                ", hobby=" + Arrays.toString(hobby) +
                ", phones=" + phones +
                ", names=" + names +
                ", countries=" + countries +
                ", files=" + files +
                '}';
    }
}
